#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2022/9/16 2:04
# @Author: 张涛
# @Email: xxx@gmail.com
# @File：sjxq_opt_page.py
from selenium.webdriver.common.by import By
from pages.base_page import BasePage

class BusiOptPage(BasePage):
    xqysc_locator = (By.XPATH,'/html/body/div[5]/div/div[2]/div[1]/div[1]/div/a[2]') #定位删除


    def xqysc_element(self):
        '''点击删除按钮'''
        self.driver.find_element(*self.xqysc_locator).click()
        self.driver.switch_to.alert.accept()  # 提示弹框选择确定
